package com.kabigon.tiny;

import com.kabigon.tiny.config.extension.TestApplicationContextInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class KabigonTinyApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(KabigonTinyApplication.class);
        springApplication.addInitializers(new TestApplicationContextInitializer());
        springApplication.run(args);
        //SpringApplication.run(KabigonTinyApplication.class, args);
        //AnnotationConfigApplicationContext application = new AnnotationConfigApplicationContext(MainConfig.class);
        //application.ini
        //String[] beansNames = application.getBeanDefinitionNames();
        //for (String beansName : beansNames) {
        //    System.out.println(beansName);
        //}
        //Object bean = application.getBean("personFactoryBean");
        //System.out.println(bean.getClass());
        //UserService userService = application.getBean(UserService.class);
        //userService.show();
    }

}
